Skip to content

Conversation

@Radvendii
Copy link
Contributor

@Radvendii Radvendii commented Nov 2, 2025

Motivation

this PR moves ExprConcatStrings' data to Exprs::alloc, and saves 16 bytes per ExprConcatStrings

  • std::vector (24 bytes) -> uint16_t (fits in padding) + pointer (8 bytes)

UPDATE: saves 8 bytes.

  • std::vector (24 bytes) -> 16 bytes (std::span)

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@Radvendii Radvendii requested a review from edolstra as a code owner November 2, 2025 22:36
@Radvendii Radvendii mentioned this pull request Nov 2, 2025
41 tasks
@Radvendii Radvendii force-pushed the exprconcatstrings-alloc branch from 60fa560 to ffd6a94 Compare November 2, 2025 22:38
@Radvendii Radvendii force-pushed the exprconcatstrings-alloc branch from c508237 to 69fa3df Compare November 3, 2025 13:54
ExprConcatStrings no longer consumes the vector argument

Co-authored-by: John Ericson <[email protected]>
@Radvendii Radvendii force-pushed the exprconcatstrings-alloc branch from 5b6502d to 631fb6c Compare November 4, 2025 03:17
@Ericson2314 Ericson2314 added this pull request to the merge queue Nov 4, 2025
Merged via the queue into NixOS:master with commit 341c42f Nov 4, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants